deleteTeam

  • function
 

Delete a team from the database.

viewmodel.deleteTeam(team, confirmMessage)

Delete a team from the database.

Parameters

  1. team {Team}

    The Team to delete.

  2. confirmMessage {String}

    The message presented to the user in a confirm() dialog.

Use in a template like:

<span class="destroy-btn" ($click)="deleteTeam(., "Are you sure?")"></span>